package com.example.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 *   站内信实体类
 * </p>
 * @author 34448
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("internal_messages")
public class InternalMessageDO {

    /**
     * 消息ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "消息ID")
    private Integer messageId;

    /**
     * 发送者ID
     */
    @ApiModelProperty(value = "发送者ID")
    private Integer senderId;

    /**
     * 接收者ID
     */
    @ApiModelProperty(value = "接收者ID")
    private Integer receiverId;

    /**
     * 主题
     */
    @ApiModelProperty(value = "主题")
    private String subject;

    /**
     * 正文
     */
    @ApiModelProperty(value = "正文")
    private String body;

    /**
     * 发送日期
     */
    @ApiModelProperty(value = "发送日期")
    @TableField(fill = FieldFill.INSERT)
    private Date sendDate;

    /**
     * 已读状态
     */
    @ApiModelProperty(value = "已读状态")
    private Boolean readStatus;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private Integer createBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private Integer updateBy;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}